package com.iap.client.context
{
	import com.iap.app.data.AppData;
	import com.iap.app.data.IAppData;
	import com.iap.client.mediator.InstanceEditWindowMediator;
	import com.iap.client.mediator.InstanceListWindowMediator;
	import com.iap.common.signal.InstanceRequestSignal;
	import com.iap.client.view.instance.InstanceEditWindow;
	import com.iap.client.view.instance.InstanceListWindow;
	import com.iap.common.command.ClientLiteCommand;
	import com.iap.common.command.InstanceCommand;
	import com.iap.common.service.ClientLiteService;
	import com.iap.common.service.IClientLiteService;
	import com.iap.common.service.IInstanceService;
	import com.iap.common.service.InstanceService;
	import com.iap.common.signal.ClientLiteRequestSignal;
	
	import flash.display.DisplayObjectContainer;
	
	import org.robotlegs.mvcs.SignalContext;
	
	public class InstanceListWindowContext extends SignalContext
	{
		override public function startup():void
		{
			injector.mapSingletonOf(IAppData, AppData);
			injector.mapSingletonOf(IInstanceService, InstanceService);
			injector.mapSingletonOf(IClientLiteService, ClientLiteService);
			signalCommandMap.mapSignalClass(ClientLiteRequestSignal, ClientLiteCommand);
			signalCommandMap.mapSignalClass(InstanceRequestSignal, InstanceCommand);
			
			mediatorMap.mapView(InstanceListWindow, InstanceListWindowMediator);
		}
	}
}